import { ParameterizedContext } from 'koa'
import uploadService from '../service/upload.service'

class UploadController {
  async upload(ctx: ParameterizedContext) {
    ctx.body = await uploadService.upload(ctx.file)
  }
}

export default new UploadController()
